﻿<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/App_MasterPages/layout.Master"
    CodeBehind="Checkout.aspx.cs" Inherits="eStore.UI.CheckoutPage" %>
<%@ Import Namespace="eStore.Helpers" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
    <portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
        <mp:CornerRounderTop ID="ctop1" runat="server" />
        <asp:Panel ID="pnlCheckout" runat="server" CssClass="art-Post-inner panelwrapper admin estore estorecart">
            <portal:ModuleTitleControlCustom ID="moduleTitle" runat="server" RenderArtisteer="true"
                UseLowerCaseArtisteerClasses="true" />
            <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
                <div class="modulecontent" style="min-height: 350px;">
                    <asp:Panel ID="pnlPayment" runat="server" CssClass="payment">
                        <h2 class="warning">
                            <asp:Literal ID="litCheckoutHeader" runat="server" /></h2>
                        <asp:Panel ID="pnlOrderSummary" runat="server">
                            <fieldset>
                                <legend>
                                    <asp:Literal ID="litOrderSummary" runat="server" />
                                </legend>
                                <asp:Panel ID="pnlCartItems" runat="server" CssClass="cart">
                                    <table class="cartgrid">
                                        <asp:Repeater ID="rptCartItems" runat="server">
                                            <HeaderTemplate>
                                                <tr class="header">
                                                    <th>
                                                        <%# Resources.eStoreResources.CartItemsHeading%>
                                                    </th>
                                                    <th>
                                                        <%# Resources.eStoreResources.CartPriceHeading%>
                                                    </th>
                                                    <th>
                                                        <%# Resources.eStoreResources.CartQuantityHeading%>
                                                    </th>
                                                </tr>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <tr class="items">
                                                    <td>
                                                        <%# Eval("Name")%>
                                                    </td>
                                                    <td class="price">
                                                        <%# StoreHelper.FormatPrice(Eval("ProductPrice").ToString(), currencyCulture) %>
                                                    </td>
                                                    <td class="quantity">
                                                        <%# Eval("Quantity") %>
                                                    </td>
                                                </tr>
                                            </ItemTemplate>
                                            <AlternatingItemTemplate>
                                                <tr class="altitems">
                                                    <td>
                                                        <%# Eval("Name")%>
                                                    </td>
                                                    <td class="price">
                                                        <%# StoreHelper.FormatPrice(Eval("ProductPrice").ToString(), currencyCulture) %>
                                                    </td>
                                                    <td class="quantity">
                                                        <%# Eval("Quantity") %>
                                                    </td>
                                                </tr>
                                            </AlternatingItemTemplate>
                                        </asp:Repeater>
                                        <asp:Panel ID="pnlSubTotal" runat="server" CssClass="settingrowtight storerow">
                                            <tr class="footer">
                                                <th>
                                                    <mp:SiteLabel ID="SiteLabel1" runat="server" CssClass="settinglabeltight storelabel"
                                                        ConfigKey="CartSubTotalLabel" ResourceFile="eStoreResources" />
                                                </th>
                                                <th class="price">
                                                    <asp:Literal ID="litSubTotal" runat="server" />
                                                </th>
                                                <th>
                                                </th>
                                            </tr>
                                        </asp:Panel>
                                        <asp:Panel ID="pnlDiscount" runat="server" CssClass="settingrowtight storerow">
                                            <tr class="footer">
                                                <th>
                                                    <mp:SiteLabel ID="SiteLabel11" runat="server" CssClass="settinglabeltight storelabel"
                                                        ConfigKey="CartDiscountTotalLabel" ResourceFile="eStoreResources" />
                                                </th>
                                                <th class="price">
                                                    <asp:Literal ID="litDiscount" runat="server" />
                                                </th>
                                                <th>
                                                </th>
                                            </tr>
                                        </asp:Panel>
                                        <asp:Panel ID="pnlOrderTotal" runat="server" CssClass="settingrowtight storerow">
                                            <tr class="footer">
                                                <th>
                                                    <mp:SiteLabel ID="SiteLabel7" runat="server" CssClass="settinglabeltight storelabel"
                                                        ConfigKey="CartOrderTotalLabel" ResourceFile="eStoreResources" />
                                                </th>
                                                <th class="price">
                                                    <asp:Literal ID="litOrderTotal" runat="server" />
                                                </th>
                                                <th>
                                                </th>
                                            </tr>
                                        </asp:Panel>
                                    </table>
                                </asp:Panel>
                            </fieldset>
                        </asp:Panel>
                        <fieldset id="frmCardInput" runat="server" class="clear">
                            <div class="settingrow">
                                <mp:SiteLabel ID="lblCardTypeGuid" runat="server" CssClass="settinglabel" ConfigKey="CartOrderInfoCardTypeLabel"
                                    ResourceFile="eStoreResources" />
                                <asp:DropDownList ID="ddCardType" runat="server">
                                    <asp:ListItem Value="Visa" Selected="true">Visa</asp:ListItem>
                                    <asp:ListItem Value="MasterCard">MasterCard</asp:ListItem>
                                    <asp:ListItem Value="AMEX">AMEX</asp:ListItem>
                                    <asp:ListItem Value="Discover">Discover</asp:ListItem>
                                </asp:DropDownList>
                            </div>
                            <div class="settingrow">
                                <mp:SiteLabel ID="lblCardOwner" runat="server" CssClass="settinglabel" ConfigKey="CartOrderInfoCardOwnerFirstNameLabel"
                                    ResourceFile="eStoreResources" />
                                <asp:TextBox ID="txtCardOwnerFirstName" Columns="20" runat="server" MaxLength="100" />
                            </div>
                            <div class="settingrow">
                                <mp:SiteLabel ID="SiteLabel2" runat="server" CssClass="settinglabel" ConfigKey="CartOrderInfoCardOwnerLastNameLabel"
                                    ResourceFile="eStoreResources" />
                                <asp:TextBox ID="txtCardOwnerLastName" Columns="20" runat="server" MaxLength="100" />
                            </div>
                            <div class="settingrow">
                                <mp:SiteLabel ID="lblCardNumber" runat="server" CssClass="settinglabel" ConfigKey="CartOrderInfoCardNumberLabel"
                                    ResourceFile="eStoreResources" />
                                <asp:TextBox ID="txtCardNumber" Columns="20" runat="server" MaxLength="255" />
                            </div>
                            <div class="settingrow">
                                <mp:SiteLabel ID="lblCardExpires" runat="server" CssClass="settinglabel" ConfigKey="CartOrderInfoCardExpiresLabel"
                                    ResourceFile="eStoreResources" />
                                <asp:DropDownList ID="ddExpireMonth" runat="server">
                                    <asp:ListItem Value="01" Text="01"></asp:ListItem>
                                    <asp:ListItem Value="02" Text="02"></asp:ListItem>
                                    <asp:ListItem Value="03" Text="03"></asp:ListItem>
                                    <asp:ListItem Value="04" Text="04"></asp:ListItem>
                                    <asp:ListItem Value="05" Text="05"></asp:ListItem>
                                    <asp:ListItem Value="06" Text="06"></asp:ListItem>
                                    <asp:ListItem Value="07" Text="07"></asp:ListItem>
                                    <asp:ListItem Value="08" Text="08"></asp:ListItem>
                                    <asp:ListItem Value="09" Text="09"></asp:ListItem>
                                    <asp:ListItem Value="10" Text="10"></asp:ListItem>
                                    <asp:ListItem Value="11" Text="11"></asp:ListItem>
                                    <asp:ListItem Value="12" Text="12"></asp:ListItem>
                                </asp:DropDownList>
                                <asp:DropDownList ID="ddExpireYear" runat="server">
                                </asp:DropDownList>
                            </div>
                            <div class="settingrow">
                                <mp:SiteLabel ID="lblCardSecurityCode" runat="server" CssClass="settinglabel" ConfigKey="CartOrderInfoCardSecurityCodeLabel"
                                    ResourceFile="eStoreResources" />
                                <asp:TextBox ID="txtCardSecurityCode" Columns="10" runat="server" MaxLength="50" />
                            </div>
                            <div class="settingrow">
                                <mp:SiteLabel ID="SiteLabel3" runat="server" CssClass="settinglabel" ConfigKey="spacer" />
                                <portal:mojoButton ID="btnMakePayment" runat="server" />&nbsp;&nbsp;
                                <br />
                                <asp:Label ID="lblMessage" runat="server" CssClass="txterror"></asp:Label>
                            </div>
                        </fieldset>
                    </asp:Panel>
                    <asp:Panel ID="pnlAddress" runat="server" CssClass="guest">
                        <asp:Panel ID="pnlBillingAddress" runat="server">
                            <hr />
                            <fieldset>
                                <legend>
                                    <asp:Literal ID="litBillingHeader" runat="server" />
                                </legend>
                                <table>
                                    <tr>
                                        <td>
                                            <mp:SiteLabel ID="lblCustomerName" runat="server" ForControl="txtCustomerFirstName"
                                                CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerNameLabel" ResourceFile="eStoreResources" />
                                        </td>
                                        <td>
                                            <asp:Literal ID="litBillingName" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <mp:SiteLabel ID="lblCustomerCompany" runat="server" ForControl="txtCustomerCompany"
                                                CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerCompanyLabel" ResourceFile="eStoreResources" />
                                        </td>
                                        <td>
                                            <asp:Literal ID="litBillingCompany" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <mp:SiteLabel ID="lblCustomerAddressLine1" runat="server" ForControl="txtCustomerAddressLine1"
                                                CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerAddressLabel" ResourceFile="eStoreResources" />
                                        </td>
                                        <td>
                                            <asp:Literal ID="litBillingAddress1" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <mp:SiteLabel ID="lblCustomerEmail" runat="server" ForControl="txtCustomerEmail"
                                                CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerEmailLabel" ResourceFile="eStoreResources" />
                                        </td>
                                        <td>
                                            <asp:Literal ID="litBillingEmail" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <mp:SiteLabel ID="lblCustomerTelephoneDay" runat="server" ForControl="txtCustomerTelephoneDay"
                                                CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerTelephoneLabel" ResourceFile="eStoreResources" />
                                        </td>
                                        <td>
                                            <asp:Literal ID="litBillingTelephoneDay" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <mp:SiteLabel ID="lblCustomerCity" runat="server" ForControl="txtCustomerCity" CssClass="settinglabel"
                                                ConfigKey="CartOrderInfoCustomerCityLabel" ResourceFile="eStoreResources" />
                                        </td>
                                        <td>
                                            <asp:Literal ID="litBillingCity" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <mp:SiteLabel ID="lblCustomerCountry" runat="server" ForControl="ddCustomerCountry"
                                                CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerCountryLabel" ResourceFile="eStoreResources" />
                                        </td>
                                        <td>
                                            <asp:Literal ID="litBillingCountry" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <mp:SiteLabel ID="lblCustomerPostalCode" runat="server" ForControl="txtCustomerPostalCode"
                                                CssClass="settinglabel" ConfigKey="CartOrderInfoCustomerPostalCodeLabel" ResourceFile="eStoreResources" />
                                        </td>
                                        <td>
                                            <asp:Literal ID="litBillingPostalCode" runat="server" />
                                        </td>
                                    </tr>
                                    
                                </table>
                            </fieldset>
                        </asp:Panel>
                        <div class="button">
                            <portal:mojoButton ID="btnBack" runat="server" />
                            <portal:mojoButton ID="btnOrder" CssClass="checkoutlink" runat="server" />
                            <portal:mojoGCheckoutButton ID="btnGoogleCheckout" runat="server" />
                            <asp:ImageButton ID="btnPayPal" runat="server" ImageUrl="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" />
                            <asp:Literal ID="litPayPalFormVariables" runat="server" />
                            
                        </div>
                    </asp:Panel>
                    <div class="settingrow">
                        <portal:CommerceTestModeWarning ID="commerceWarning" runat="server" />
                        <br />
                        <asp:Label ID="lblGoogleMessage" runat="server" CssClass="txterror" Visible="false"></asp:Label>
                    </div>
                    <div class="settingrow">
                        <portal:InsecurePageWarning ID="InsecurePageWarning1" runat="server" />
                    </div>
                </div>
            </portal:mojoPanel>
            <div class="cleared">
            </div>
        </asp:Panel>
        <mp:CornerRounderBottom ID="cbottom1" runat="server" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
